package com.gitee.cirnochat.user.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gitee.cirnochat.user.mapper.UserChatSettingMapper;
import com.gitee.cirnochat.user.model.entity.UserChatSetting;
import com.gitee.cirnochat.user.service.UserChatSettingService;
import org.springframework.stereotype.Service;

/**
* @author FlanChan
* @description 针对表【user_chat_setting(用户聊天设置表)】的数据库操作Service实现
* @createDate 2025-04-19 10:33:52
*/
@Service
public class UserChatSettingServiceImpl extends ServiceImpl<UserChatSettingMapper, UserChatSetting>
    implements UserChatSettingService {

    @Override
    public UserChatSetting getByUserId(Long userId) {
        return this.getOne(new LambdaQueryWrapper<>(UserChatSetting.class)
                .eq(UserChatSetting::getUserId, userId));
    }
}




